<%- include('common/head.ejs') %>
<link rel="stylesheet" href="/stylesheets/index.css"/>
<%- include('common/body.ejs') %>
<%- include('common/head-nav.ejs') %>
<h1><%= title %></h1>
<p>Welcome to <%= title %></p>

<div class="main">
    <div class="goods">
        <ul>
            <% goods.forEach(function(item, index){ %>
            <li class="item-list">
                <a href="/goods/getGoods?goodsId=<%= item._id %>">
                    <img src="<%= item.image[0][0].substring(6) %>"/>
                    <div style="margin: 10px 8px;">
                        <h4>￥<%= item.price %></h4>
                        <p><%= item.name %></p>
                    </div>
                </a>
            </li>
            <% }) %>
        </ul>
    </div>
</div>
<%- include('common/footer.ejs') %>